import request from '@/utils/request'

// 查询voc数据列表
export function listVocdata(query) {
  return request({
    url: '/environment/vocdata/list',
    method: 'get',
    params: query
  })
}

// 查询voc数据详细
export function getVocdata(id) {
  return request({
    url: '/environment/vocdata/' + id,
    method: 'get'
  })
}

// 新增voc数据
export function addVocdata(data) {
  return request({
    url: '/environment/vocdata',
    method: 'post',
    data: data
  })
}

// 修改voc数据
export function updateVocdata(data) {
  return request({
    url: '/environment/vocdata/editById',
    method: 'post',
    data: data
  })
}

// 删除voc数据
export function delVocdata(id) {
  return request({
    url: '/environment/vocdata/deleteByIds',
    method: 'post',
    data: {
        ids:id
    }
  })
}
